﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
using Jalal.Library.Utility;
using System.Web;
using System.IO;
using System.Web.UI;

[assembly: TagPrefix("Jalal.Library.Web.Control", "ucc")]
namespace Jalal.Library.Web.Control
{
    [SupportsEventValidation, ValidationProperty("Text")]
    [ToolboxData("<{0}:DateFormatLabel runat=server></{0}:DateFormatLabel>")]
    public class DateFormatLabel : Label
    { 
        protected override void OnLoad(EventArgs e)
        {
            base.Text = CommonUtility.FormatedDateString(DateTime.Parse(this.Text));
        }
    }
}
